/*
 * This source code is part of TWaver 4.0
 *
 * Serva Software PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * Copyright 2002 - 2011 Serva Software. All rights reserved.
 */

package demo.network.miscellaneous.instrument.element;

import demo.network.miscellaneous.instrument.attachment.KPIAttachment;
import demo.network.miscellaneous.instrument.elementui.StateUI;
import twaver.Node;

public class CustomUINode extends Node{
	public CustomUINode(){
		this.init();
	}
	
	public CustomUINode(Object id){
		super(id);
		this.init();
	}
	
	private void init(){
		this.addAttachment("Thermometer");
		this.addAttachment("KPI");
        
        this.putClientProperty("temperature", 15);
        for (int k = 0; k < KPIAttachment.KEYS.length; k++) {
            String key = KPIAttachment.KEYS[k];
            this.putClientProperty(KPIAttachment.KEYS[k], key + ":" + k * 0.2);
        }
	}

    public String getUIClassID() {
        return StateUI.class.getName();
    }
}